<?php
/**
 * Created by PhpStorm.
 * User: dy
 * Date: 2017/6/5
 * Time: 16:19
 */
$file = $_GET['filename'];
header('content-disposition:attachment;filename='.basename($file));
header('content-length:'.filesize($file));
readfile($file);
unlink($file);